<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>工资信息</title>
<script src="js/select.js" type="text/javascript"></script>
</head>
<body>
<div id="main">
<H3>工资信息</H3>
<p>
<a href="salaryAction!findAll">刷新 显示所有</a>  <a href="payadd.jsp">增加</a>
</p>
快速查找 <a href="paysearch.jsp">高级搜索</a>
 <table class="infono" >
      <tr>
        <td><form action="salaryAction!searchById" method="get" id="emsinfo"><input type="text" name="id" /><input type="submit" value="ID" /></form></td>
        
        <td><form action="salaryAction!searchByEmId" method="get" id="emsinfo2" ><input type="text" name="id" /><input type="submit" value="员工ID" /></form></td>
	
        <td><form action="salaryAction!searchByEmName" method="get" id="emsinfo3" ><input type="text" name="sname" /><input type="submit" value="员工姓名" /></form></td>
       
      </tr>
    </table>
<form action="salaryAction!deletese" method="post">
<table>
<tr >
<td >选择</td>
<td >工资ID</td>
<td >员工ID</td>
<td >员工姓名</td>
<td >发放工资时间</td>
<td >基本工资</td>
<td >加班费</td>
<td >工龄</td>
<td >考勤费</td>
<td >旷工费</td>
<td >保险费</td>
<td >操作</td>
<td >操作</td>
</tr>
<s:iterator value="pagelist.list">
  <tr>
  	<td><input type="checkbox" name="ids"  value="<s:property value="id" />" /></td>
  	<td><s:property value="id" /></td>
    <td><a href="hremAction!showem?id=<s:property value="myeEmployee.id" />"><s:property value="myeEmployee.id" /></a></td>
    <td><s:property value="myeEmployee.name" /></td>
    <td><s:date name="time" format="yyyy-MM-dd HH:mm:ss" /></td>
    <td><s:property value="basePay" /></td>
    <td><s:property value="extraPay" /></td>
    <td><s:property value="workAge" /></td>
    <td><s:property value="attendPay" /></td>
    <td><s:property value="absentPay" /></td>
    <td><s:property value="insurancePay" /></td>
    <td><a href="salaryAction!findById?id=<s:property value='id'/>">修改</a></td>
    <td><a href="salaryAction!delete?id=<s:property value='id'/>">删除</a></td>
 </tr>
</s:iterator>
</table>
<s:if test="%{null!=pagelist}">
  <div> <span>全选</span>

      <input id="checkall" type="checkbox" class="checkbox" onchange="selectall()"/>

      <span>取消全选</span>

      <input id="checkcan" type="checkbox" class="checkbox" onclick="cancelselectall()"/>

      <span>反转</span>

      <input id="checkcfan" type="checkbox" class="checkbox" onclick="selectfan()"/>
	  <input type="submit" value="删除所选" />
    </div>
 </s:if>
</form>





<div >
<s:if test="%{pagelist.pageNum!=1}">
<s:a href="%{pagelist.url}%{pagelist.para}pagelist.pageNum=%{pagelist.pagePreNum}">上一页</s:a>
</s:if>

<s:iterator value="pagelist.pageNums" status="st">
<s:if test="%{pagelist.pageNum==#st.index+1}">
<s:property/>
</s:if>
<s:else>
<s:a href="%{pagelist.url}%{pagelist.para}pagelist.pageNum=%{#st.index+1}"><s:property/></s:a>
</s:else>
</s:iterator>
<s:if test="%{pagelist.pageNum!=pagelist.pageTotalCount}">
<s:a href="%{pagelist.url}%{pagelist.para}pagelist.pageNum=%{pagelist.pageNextNum}">下一页</s:a>
</s:if>
</div>

<s:debug></s:debug>
</div>
</body>
</html>